<?php 
$cs=Yii::app()->clientScript;
$cssUrl= Yii::app()->request->baseUrl."/css/";
$jsUrl = Yii::app()->request->baseUrl."/js/";
$cs->registerCssFile($cssUrl."ad_profile.css");
$cs->registerCssFile($cssUrl."ad_view.css");
$cs->registerCssFile($cssUrl."write_copy.css");
$cs->registerCssFile($cssUrl."copy_list.css");
$cs->registerCssFile($cssUrl."publish.css");
$cs->registerCssFile($cssUrl."dashboard.css");
$cs->registerScriptFile($jsUrl."ad_status_edit.js");
?>
<div id="main-col-small" class="div">
	<div class="mainColInner">
		<div class="ad_view">
			<div class="subPageHeader over-hidden">
				<a class="text-with-icon-14 float-right" href="<?=Yii::app()->createUrl('copy/cover')?>">
					<i class="list-icon-14"></i>
					<?=Yii::t('adv', 'list');?>
				</a>
				<h1><?=Yii::t('copy','slogan_write_spread')?></h1>
			</div>
			<div class="adProfile">
				<div class="float-left">
					<?php $this->widget('AdImage',array('image'=>$ad->details->image));
						$this->widget('AdSpentGraph');
					?>
				</div>
				<?php $this->widget('AdInfo',array('adTitle'=>$ad->details->title,'description'=>$ad->details->description,'link'=>$ad->details->link));?>
			</div>
			<div style="height: 30px; line-height: 30px;" class="over-hidden">
				<div style="color: rgb(85, 85, 85); font-size: 13px; font-weight: bold;" class="float-left"><?=Yii::t('copy','copywriting')?></div>
			</div>
			<div id="writeCopyContainer" ad_id="<?=$ad->id?>" style="display: block;">
				<?php $this->renderPartial('_writeCopyContainer',array('ad'=>$ad)); ?>
			</div>
			<div style="margin-bottom: 5px;" class="over-hidden"> 
				<span style="color: rgb(85, 85, 85); font-size: 13px; font-weight: bold;" class="float-left">Publish</span>  
				<span style="color: rgb(103, 103, 103); font-size: 12px;" class="float-right">Pick a slogan you want to publish.</span> 
			</div>
			<div class="LinkCopiesList">
				<div id="page-container">
					<div class="slogan-item"><div class="image"><a href="/works/slogans/noahcha"><img alt="" style="width: 48px; height: 48px;" src="https://adbyme-w.s3.amazonaws.com/thumbs/User/9268.48x48.crop.png"></a></div><div class="cnt"><div class="text"> <span class="mg-r-5"><a href="/works/slogans/noahcha">noahcha</a></span>  <span>New iPhone game "Lost Earth" is On Sale. ^^</span>  <span class="desc mg-l-5">Sep 15th, 04:15</span> </div><div class="actions gray"> <a href="#" class="comment-open text-with-icon-12"> <i class="comment-icon-12"></i> Comment</a>  <span class="mg-l-5 mg-r-5 gray">·</span>  <a href="/pubs/publish/4e717bf98b15aef440000019" class="publish-it text-with-icon-12"> <i class="publish-icon-12"></i> Publish</a>  <a href="/pubs/publisher/4e717bf98b15aef440000019" class="publisher"> (31)</a>  <span class="mg-l-5 mg-r-5 gray">·</span>  <span class="gray">45 UV</span> </div><div class="publisher-cnt font-s display-none"><div class="head"> <a href="/wall/expandPublisher/4e717bf98b15aef440000019"> <span class="gray">Published <b>31</b> time(s)</span> </a> <div class="desc">Total <b>45</b> UV</div></div><div class="page-cnt"></div></div><div class="comment-cnt font-s mg-t-5"><div class="page-cnt"></div><div class="comment-input mg-t-10 display-none"><form accept-charset="utf-8" action="/comments/write/4e717bf98b15aef440000019" method="post" id="CommentAdForm"><div style="display: none;"><input type="hidden" value="POST" name="_method"></div><div class="input text"><input type="text" id="CommentComment" placeholder="Add a comment..." class="input-s" name="data[Comment][comment]" style="display: none;"><input type="text" value="Add a comment..." class="input-s empty" tabindex="0" name="defaultvalue-clone-6344"></div><div class="btns display-none mg-t-5"><input type="submit" value="Submit" class="btn-s btn-blue"> <span class="mg-r-5"></span> <input type="button" value="Cancel" class="cancel btn-s mg-l-5"></div></form></div></div></div></div>
				</div>
			</div>
		</div>
	</div>
</div>
<div id="side-col">
	<?php $this->widget('TagOwner',array('owner'=>Yii::app()->user->name));?>
</div>
